package chy.action;

import java.util.Map;

import com.alibaba.druid.Constants;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

import chy.entity.Employee;


public class BaseAction extends ActionSupport {
    protected Map<String, Object> getSession() {
		ActionContext actionContext=ActionContext.getContext();
		return actionContext.getSession();
	}
    
    
    //获得当前登录用户的方法
    protected Employee getLoginEmployee() {
    	return (Employee)this.getSession().get(Constants.AUTH_EMPLOYEE);
	}
}
